<?php
/**
 * 发货的队列调用
 *
 * @author chris.zhang
 * @package ome_delivery_template
 * @copyright www.shopex.net.cn 2011.01.12
 *
 */
class ome_delivery_consign{

    function run(&$cursor_id,$params){
        $dly_id = $params['sdfdata'];
        $model = &app::get($params['app'])->model($params['mdl']);
        $dly = $model->dump($dly_id,'process');
        if ($dly && $dly['process']=='false'){
            $model->consignDelivery($dly_id);
        }
        return false;
    }
}